// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '设备维护',
        name: 'DeviceProtection',
        url: "/DeviceProtection/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"Name":"","Descs":"","People":"","Results":"","FaultTime":"","State":""};
    const editFormOptions = [[{"title":"设备名称","required":true,"field":"Name","type":"text"}],
                              [{"title":"故障描述","required":true,"field":"Descs","type":"text"}],
                              [{"title":"处理人","required":true,"field":"People","type":"text"}],
                              [{"title":"处理结果","required":true,"field":"Results","type":"text"}],
                              [{"title":"故障时长(分钟)","required":true,"field":"FaultTime","type":"text"}],
                              [{"dataKey":"设备状态","data":[],"title":"设备状态","required":true,"field":"State","type":"radio"}]];
    const searchFormFields = {"Name":""};
    const searchFormOptions = [[{"title":"设备名称","field":"Name","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'Name',title:'设备名称',type:'string',width:110,require:true,align:'left'},
                       {field:'Descs',title:'故障描述',type:'string',width:180,require:true,align:'left'},
                       {field:'People',title:'处理人',type:'string',width:110,require:true,align:'left'},
                       {field:'Results',title:'处理结果',type:'string',width:110,require:true,align:'left'},
                       {field:'FaultTime',title:'故障时长(分钟)',type:'string',width:110,require:true,align:'left'},
                       {field:'State',title:'设备状态',type:'string',bind:{ key:'设备状态',data:[]},width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}